package com.qiyeji.real_estate.service;

import com.qiyeji.real_estate.entity.monitoringData;
import com.qiyeji.real_estate.entity.monitoringDataKey;
import com.qiyeji.real_estate.mapper.monitoringDataMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class MonitoringDataService {
    @Autowired
    monitoringDataMapper monitoringDataMapper;

    public int insert(monitoringData record){
        return monitoringDataMapper.insert(record);
    }

    public int delete(monitoringDataKey key){
        return monitoringDataMapper.deleteByPrimaryKey(key);
    }

    public int updateByPrimaryKey(monitoringData record){
        return monitoringDataMapper.updateByPrimaryKey(record);
    }

    public monitoringData selectByPrimaryKey(monitoringDataKey key){
        return monitoringDataMapper.selectByPrimaryKey(key);
    }

    public List<monitoringData> getAllMonitoringData(){
        return monitoringDataMapper.getAllMonitoringData();
    }

    public List<monitoringData> fuzzyQuery(String key){
        return monitoringDataMapper.fuzzyQuery(key);
    }
}
